package com.hp.service.impl;

import com.hp.dao.TypeDao;
import com.hp.entity.Type;
import com.hp.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: LiuQiang
 * @Date: 2021/10/23 22:13
 */
@Service
public class TypeServiceImpl implements ITypeService {

    @Autowired
    private TypeDao typeDao;

    @Override
    public List<Type> findTypeAll() {
        return typeDao.findTypeAll();
    }

    @Override
    public Type findTypeById(Integer id) {
        return typeDao.findTypeById(id);
    }

    @Override
    public int typeUpdate(Type type) {
        return typeDao.typeUpdate(type);
    }

    @Override
    public int typeDeleteById(Integer id) {
        return typeDao.typeDeleteById(id);
    }

    @Override
    public int addTypes(Type type) {
        return typeDao.addTypes(type);
    }
}
